package com.ml.mall.entity.catalogue;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
    * 
    * </p>
*
* @author pl
* Created 2021-05-25
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_catalogue")
@ApiModel(value="SysCatalogue对象", description="")
public class SysCatalogue implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
    * 是否删除
    */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    /**
    * 买家id
    */
    @ApiModelProperty(value = "买家id")
    @TableField("company_id")
    private Long companyId;

    /**
    * 收藏目录ID
    */
    @ApiModelProperty(value = "收藏目录ID")
    @TableField("catalogue_id")
    private Integer catalogueId;

    /**
    * 目录名称
    */
    @ApiModelProperty(value = "目录名称")
    @TableField("catalogue_name")
    private String catalogueName;

    /**
    * 优先类型：0：不优先；1：优先
    */
    @ApiModelProperty(value = "优先类型：0：不优先；1：优先")
    @TableField("preffered_type")
    private Integer prefferedType;


}
